package com.inspur.dgov.bsp.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 字典类别信息
 *
 * @author chiyupei
 * @version 1.0
 * @since 1.0
 */
@Data
@TableName("pub_config")
@ApiModel(value="PubConfig对象", description="字典类别信息")
public class PubConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "字典类别ID")
    @TableId("ID")
    private Long id;

    @ApiModelProperty(value = "字典类别编码")
    @TableField("CODE")
    private String code;

    @ApiModelProperty(value = "字典类别名称")
    @TableField("NAME")
    private String name;

    @ApiModelProperty(value = "字典级别")
    @TableField("TYPE")
    private String type;

    @ApiModelProperty(value = "排序")
    @TableField("SORT_ORDER")
    private Integer sortOrder;

    @ApiModelProperty(value = "创建者ID")
    @TableField("CREATOR")
    private Long creator;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "状态")
    @TableField("STATUS")
    private String status;

    @ApiModelProperty(value = "应用ID")
    @TableField("APP_ID")
    private Long appId;

    @ApiModelProperty(value = "租户ID")
    @TableField("TENANT_ID")
    private Long tenantId;


}
